import { request } from "../request";

export const apiSysPosListGet = (name?: string, code?: string, tenantId?: number | undefined)=>{
    return request({
        method:"GET",
        url:"/api/sysPos/list",
        params:{
            name,
            code,
            tenantId
        }
    })
}

export const apiSysPosUpdatePost = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/sysPos/update",
        data
    })
}

export const apiSysPosAddPost = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/sysPos/add",
        data
    })
}

export const apiSysPosDeletePost = (data:any)=>{
    return request({
        method:"POST",
        url:"/api/sysPos/delete",
        data
    })
}